package com.freeLearning.boot.course.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@TableName("user_course_chapter")
public class UserCourseChapter {
    @Schema(description = "id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "分集 Id")
    private Long chapterId;

    @Schema(description = "课程 id")
    private Long courseId;

    @Schema(description = "学习进度（百分比）")
    private BigDecimal progress;
}
